projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de3daf0
)
Fix unknown-vs-nonexistent glitch for file timestamps
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 16 Sep 2019 03:17:43 +0000
(20:17 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 16 Sep 2019 03:18:06 +0000
(20:18 -0700)
* src/fileio.c (time_error_value): EACCES means the file
timestamp is unknown, not that the file does not exist.
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index da32d6c095caf8e6dd7e88e3cafa80abdd532724..34afbc23da73b7cf769c83e736e410124a29c774 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-3612,7
+3612,7
@@
file_offset (Lisp_Object val)
static struct timespec
time_error_value (int errnum)
{
- int ns = (errnum == ENOENT || errnum == E
ACCES || errnum == E
NOTDIR
+ int ns = (errnum == ENOENT || errnum == ENOTDIR
? NONEXISTENT_MODTIME_NSECS
: UNKNOWN_MODTIME_NSECS);
return make_timespec (0, ns);